@extends('layouts.normal')
@section('self-style')
    <link rel="stylesheet" href="/package/plugins/datepicker/datepicker3.css">
@endsection
@section('local-style')
    <style type="text/css">
        .form-group .radio-group {line-height: 32px;margin: 0px;}
        .form-group input[type="radio"] {margin-left: 20px;margin-right: 10px;}
        input[name="marriage-profile"] {
            width: 128px;
        }
    </style>
@endsection
@section('menu')
    @include("teacher.layouts.menu")
@endsection

@section("header")
    <section class="content-header">
        <h4>
            我的资料
            <b>/</b>
            编辑资料
        </h4>
    </section>
@endsection

@section('content')
    <section class="content">
        <div class="row">
            <div class="col-md-12">
                <!-- Horizontal Form -->
                <div class="box box-success">
                    <div class="form-horizontal">
                        <div class="box-header with-border">
                            <div class="col-sm-12">
                                <h3 class="col-sm-2 box-title"></h3>
                                <div class="col-sm-9">
                                    <a class="btn btn-default pull-right" href="javascript:history.back();">返回</a>
                                </div>
                            </div>
                        </div>
                        <!-- /.box-header -->
                        <!-- form start -->
                        <div class="box-body">
                            <div class="row">
                                <div class="col-sm-12">
                                    <div class="form-group">
                                        <label class="control-label col-sm-3">工号:</label>
                                        <div class="col-sm-8">
                                            <span class="file-number"></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-sm-3">姓名:</label>
                                        <div class="col-sm-8">
                                            <input type="text" class="form-control file-realname">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-sm-3">性别:</label>
                                        <div class="col-sm-8">
                                            <label class="radio-group"><input type="radio" name="file-gender" value="1">男</label>
                                            <label class="radio-group"><input type="radio" name="file-gender" value="2">女</label>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-sm-3">身份证号:</label>
                                        <div class="col-sm-8">
                                            <input type="text" class="form-control file-identity">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-sm-3">手机号:</label>
                                        <div class="col-sm-8">
                                            <input type="text" class="form-control file-mobile">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-sm-3">邮箱:</label>
                                        <div class="col-sm-8">
                                            <input type="text" class="form-control file-email">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-sm-3">所在单位:</label>
                                        <div class="col-sm-8">
                                            <select class="form-control file-unit"></select>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-sm-3">进校时间:</label>
                                        <div class="col-sm-8">
                                            <div class="input-group">
                                                <div class="input-group-addon">
                                                    <i class="fa fa-calendar"></i>
                                                </div>
                                                <input type="text" class="form-control pull-right file-join-at" value="2018-06">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-sm-3">工龄:</label>
                                        <div class="col-sm-8">
                                            <input type="text" class="form-control file-work-age">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-sm-3">学历:</label>
                                        <div class="col-sm-8">
                                            @include('layouts.education')
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-sm-3">学历证书:</label>
                                        <div class="col-sm-8">
                                            <div class="education-profile pull-left">
                                                <input type="hidden" name="education-profile" class="upload-img-input input-education-profile">
                                                <div class="upload-education-profile" style="position: relative;">
                                                    <img class="img-education-profile" src="/images/profile.png" width="120" height="80">
                                                </div>
                                                <a id="text-education-profile">上传图片</a>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-sm-3">学位:</label>
                                        <div class="col-sm-8">
                                            @include('layouts.degree')
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-sm-3">学位证书:</label>
                                        <div class="col-sm-8">
                                            <div class="degree-profile pull-left">
                                                <input type="hidden" name="degree-profile" class="upload-img-input input-degree-profile">
                                                <div class="upload-degree-profile" style="position: relative;">
                                                    <img class="img-degree-profile" src="/images/profile.png" width="120" height="80">
                                                </div>
                                                <a id="text-degree-profile">上传图片</a>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-sm-3">职务:</label>
                                        <div class="col-sm-4">
                                            <select class="form-control col-sm-4 file-job-type">
                                                <option value="1">管理类</option>
                                                <option value="2">技工类</option>
                                            </select>
                                        </div>
                                        <div class="col-sm-4">
                                            <select class="form-control col-sm-4 file-job-code">

                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-sm-3">职称:</label>
                                        <div class="col-sm-8">
                                            <label class="radio-group"><input type="radio" name="file-professional-title-code" value="1">正高级</label>
                                            <label class="radio-group"><input type="radio" name="file-professional-title-code" value="2">副高级</label>
                                            <label class="radio-group"><input type="radio" name="file-professional-title-code" value="3">中级</label>
                                            <label class="radio-group"><input type="radio" name="file-professional-title-code" value="4">初级</label>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-sm-3">职称评审时间:</label>
                                        <div class="col-sm-8">
                                            <div class="input-group">
                                                <div class="input-group-addon">
                                                    <i class="fa fa-calendar"></i>
                                                </div>
                                                <input type="text" class="form-control pull-right file-professional-check" value="2018-06">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-sm-3">职称证书:</label>
                                        <div class="col-sm-8">
                                            <div class="professional-title-profile pull-left">
                                                <input type="hidden" name="professional-title-profile" class="upload-img-input input-professional-title-profile">
                                                <div class="upload-professional-title-profile" style="position: relative;">
                                                    <img class="img-professional-title-profile" src="/images/profile.png" width="120" height="80">
                                                </div>
                                                <a id="text-professional-title-profile">上传图片</a>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-sm-3">现岗位聘用时间:</label>
                                        <div class="col-sm-8">
                                            <div class="input-group">
                                                <div class="input-group-addon">
                                                    <i class="fa fa-calendar"></i>
                                                </div>
                                                <input type="text" class="form-control pull-right file-duty-on" value="2018-06">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-sm-3">聘用方式:</label>
                                        <div class="col-sm-8">
                                            <input type="text" class="form-control file-duty-type">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-sm-3">身份:</label>
                                        <div class="col-sm-8">
                                            <input type="text" class="form-control file-capacity">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-sm-3">婚姻状况:</label>
                                        <div class="col-sm-8">
                                            <label class="radio-group"><input type="radio" name="file-marriage" value="1" checked="checked">未婚</label>
                                            <label class="radio-group"><input type="radio" name="file-marriage" value="2">已婚</label>
                                            <label class="radio-group"><input type="radio" name="file-marriage" value="3">离异</label>
                                            <label class="radio-group"><input type="radio" name="file-marriage" value="4">丧偶</label>
                                        </div>
                                    </div>
                                    <div class="form-group marriage-profile-form hidden">
                                        <label class="control-label col-sm-3 marriage-title">未婚证明:</label>
                                        <div class="col-sm-8">
                                            <div class="marriage-profile pull-left">
                                                <input type="hidden" name="marriage-profile" class="upload-img-input input-marriage-profile">
                                                <div class="upload-marriage-profile" style="position: relative;">
                                                    <img class="img-marriage-profile" src="/images/profile.png" width="120" height="80">
                                                </div>
                                                <a id="text-marriage-profile">上传图片</a>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group has-spouse-group">
                                        <label class="control-label col-sm-3">配偶姓名:</label>
                                        <div class="col-sm-8">
                                            <input type="text" class="form-control file-spouse-name">
                                        </div>
                                    </div>
                                    <div class="form-group has-spouse-group">
                                        <label class="control-label col-sm-3">配偶工作单位:</label>
                                        <div class="col-sm-8">
                                            <input type="text" class="form-control file-spouse-unit">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-sm-3">是否有房:</label>
                                        <div class="col-sm-8">
                                            <div class="col-sm-8">
                                                <label class="radio-group"><input type="radio" name="file-has-house" value="1">有</label>
                                                <label class="radio-group"><input type="radio" name="file-has-house" value="0">无</label>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-sm-3 house-title">房产证明文件:</label>
                                        <div class="col-sm-8">
                                            <div class="house-profile pull-left">
                                                <input type="hidden" name="house-profile" class="upload-img-input input-house-profile">
                                                <div class="upload-house-profile" style="position: relative;">
                                                    <img class="img-house-profile" src="/images/profile.png" width="120" height="80">
                                                </div>
                                                <a id="text-house-profile">上传图片</a>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-sm-3">备注:</label>
                                        <div class="col-sm-8">
                                            <textarea class="form-control file-remark"></textarea>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!-- /.box-body -->
                        <div class="box-footer">
                            <div class="form-group">
                                <label for="inputPassword3" class="col-sm-3 control-label"></label>
                                <div class="col-sm-8">
                                    <button class="btn btn-info pull-left btn-save">提交</button>
                                </div>
                            </div>

                        </div>
                        <!-- /.box-footer -->
                    </div>
                </div>
                <!-- /.box -->
            </div>
        </div>
    </section>
@endsection


@section('modal')
@endsection



@section('self-script')
    <script type="text/javascript" src="/js/ajaxupload.js?v={{ time() }}"></script>
    <script src="/package/plugins/datepicker/bootstrap-datepicker.js"></script>
    <script src="/package/plugins/datepicker/locales/bootstrap-datepicker.zh-CN.js"></script>
    <script type="text/javascript" src="/js/teacher/file-edit.js?v={{ time() }}"></script>
@endsection
@section('local-script')
    <script type="text/javascript">
        $('.file-join-at, .file-professional-check, .file-duty-on').datepicker({
            "autoclose" : true,
            format: 'yyyy-mm',
            todayBtn: true,
            changeMonth: true,
            changeYear: true,
            changeDate: false,
            "language" : "zh-CN"
        });
    </script>
@endsection